package org.dairy.farms.model;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 * Created by IntelliJ IDEA.
 * User: gduggira
 * Date: Jul 13, 2011
 * Time: 3:31:09 PM
 */
@Entity
@DiscriminatorValue(value = "PERSON_REVENUE")
public class PersonRevenue extends Revenue{
    @ManyToOne
    @JoinColumn(name = "PERSON_ID")
    private Person person;

    public Person getPerson() {
        return person;
    }

    public void setPerson(Person person) {
        this.person = person;
    }
}
